package com.ruoyi.voucher.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 凭证详情对象 financial_voucher_details
 *
 * @author ruoyi
 * @date 2025-02-23
 */
public class VoucherDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 凭证id */
    @Excel(name = "凭证id")
    private Long voucherId;

    /** 摘要id */
    @Excel(name = "摘要id")
    private String summaryId;

    /** 科目id */
    @Excel(name = "科目id")
    private Long subjectId;

    /** 借方金额 */
    @Excel(name = "借方金额")
    private Long debitAmount;

    /** 贷方金额 */
    @Excel(name = "贷方金额")
    private Long creditAmount;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setVoucherId(Long voucherId)
    {
        this.voucherId = voucherId;
    }

    public Long getVoucherId()
    {
        return voucherId;
    }
    public void setSummaryId(String summaryId)
    {
        this.summaryId = summaryId;
    }

    public String getSummaryId()
    {
        return summaryId;
    }
    public void setSubjectId(Long subjectId)
    {
        this.subjectId = subjectId;
    }

    public Long getSubjectId()
    {
        return subjectId;
    }
    public void setDebitAmount(Long debitAmount)
    {
        this.debitAmount = debitAmount;
    }

    public Long getDebitAmount()
    {
        return debitAmount;
    }
    public void setCreditAmount(Long creditAmount)
    {
        this.creditAmount = creditAmount;
    }

    public Long getCreditAmount()
    {
        return creditAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("voucherId", getVoucherId())
                .append("summaryId", getSummaryId())
                .append("subjectId", getSubjectId())
                .append("debitAmount", getDebitAmount())
                .append("creditAmount", getCreditAmount())
                .toString();
    }
}
